# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=recoll
pkgver=1.36.2
pkgrel=0
pkgdesc="Desktop full-text search tool"
url="https://www.lesbonscomptes.com/recoll/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	aspell-dev
	file
	libx11-dev
	libxslt-dev
	py3-setuptools
	python3-dev
	qt5-qtbase-dev
	qt5-qttools-dev
	xapian-core-dev
	zlib-dev
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.lesbonscomptes.com/recoll/recoll-$pkgver.tar.gz
	no-glibc.patch
	"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-python-module \
		--disable-python-chm \
		--disable-webkit
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

check() {
	make check
}

sha512sums="
4c7ce5b6f6213ba4cb9266dcd6ea26e56850aa984c343552464766c5036ac6fd2ac6e9e71157997e10e8ba0350d23a4ebc3f2d57978805aa2d33674aa2a6c8b0  recoll-1.36.2.tar.gz
8617a8b85404ad3e025c6e28f6bec91d455a0cf6744783dd9faa443fe45ee92deb99a9e2f114ae5e639c88c0cf83d93604d1558c9b5e507e802f6250be1b073e  no-glibc.patch
"
